import request from "../service/request";
// 更新用户信息
export function updatePerson(data) {
    return request({
        url: "/user/info/updatePerson",
        method: "POST",
        data
    })
}
// 刷新token
export function refreshTokenApi(data) {
    return request({
        url: "/user/login/refreshToken",
        method: "POST",
        data
    })
}
// 获取用户信息
export function getUserPerson() {
    return request({
        url: "/user/info/person",
        method: "get"
    })
}
// 微信小程序登录
export function mini(data) {
    return request({
        url: "/user/login/mini",
        method: "post",
        data
    })
}
// 密码登录
export function password(data) {
    return request({
        url: "/user/login/password",
        method: "post",
        data
    })
}
// 手机号登录
export function phone(data) {
    return request({
        url: "/user/login/phone",
        method: "post",
        data
    })
}